package com.chixing.day05;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * @author Y2014188432
 */
public class ProductList {
    public static void main(String[] args) {
        List<Product> products = new ArrayList<>();

        products.add(new Product(152,"货物",22.5,15.2,"blue"));
        products.add(new Product(175,"位置",52.1,30.2,"red"));
        products.add(new Product(545,"ce",42.1,45.1,"black"));



        for (Product product: products) {
            System.out.println(product);
        }
    }
}
